﻿namespace Services.Security
{
    /// <summary>
    /// 加密服务
    /// </summary>
    public interface IEncryptionService
    {
        string CreateSaltKey(int size);
        string CreatePasswordHash(string password, string saltkey, string passwordFormat = "SHA1");
        string EncryptText(string plainText, string encryptionPrivateKey = "");
        string DecryptText(string cipherText, string encryptionPrivateKey = "");
    }
}
